﻿//     Copyright (c) Microsoft Corporation.  All rights reserved.

using System;
using System.Collections.Generic;
using System.Data.Entity;
using System.Linq;
using System.Web;
using Gateway.Console.Services;

namespace Gateway.Console.Models
{
    public class ConsoleContext : DbContext
    {
        public ConsoleContext() : base("name=ConsoleContext")
        {
            Database.SetInitializer(new MigrateDatabaseToLatestVersion<ConsoleContext, Gateway.Console.Migrations.Configuration>());
        }

        public DbSet<Deployment> Deployments { get; set; }

        public DbSet<DeployStatus> DeploymentStatus { get; set; }

        public DbSet<RoleModel> RoleModels { get; set; }

        public DbSet<SecurityModel> SecurityModels { get; set; }

        public DbSet<AnalyticsModel> AnalyticsModel { get; set; }

        public DbSet<AnalyticsReportModel> AnalyticsReportModels { get; set; }

        public DbSet<AnalyticsReportRow> AnalyticsReportRows { get; set; }

        public DbSet<AnalyticsStatus> AnalyticsStatus { get; set; }

        public DbSet<RestrictionsModel> RestrictionModels { get; set; }

        public DbSet<FlightModel> FlightModels { get; set; }
    }
}
